<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

		    <%@ page import="org.hibernate.SessionFactory" %>
    <%@ page import="org.hibernate.Session" %>
    <%@ page import="java.util.List" %>
    <%@ page import="hibernate.model.*"  %>
    <%@ page import="hibernate.util.HibernateUtil" %>
    <%@ page import="hibernate.method.*" %>
    <% 
SessionFactory sessionFactory = HibernateUtil.getSessionAnnotationFactory();
Session s = sessionFactory.openSession();
session.invalidate();
s.close();
response.sendRedirect("index.jsp"); %>